import $http from '../assets/js/http'

export async function Login({
  account,
  pwd,
  remember = false
}) {
  return $http.post('logining/Login/Login', {
    account,
    pwd,
    remember
  })
}

export async function modifyPassword(
  account,
  oldPwd,
  newPwd,
) {
  return $http.post('logining/Login/modifyPassword', {
    account,
    oldPwd,
    newPwd,
  })
}
